FROM golang:1.21.1

LABEL MAINTAINER="13826821655"

RUN mkdir /hft-saas-server
WORKDIR /hft-saas-server

COPY . .

RUN go env -w GO111MODULE=on
RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN go env -w GOOS=linux


RUN go mod tidy
RUN go mod download

RUN go build -mod=mod main.go

EXPOSE 3046

ENTRYPOINT ["./main"]


